package utils;

import android.content.Context;
import android.telephony.TelephonyManager;

import com.adutil.AppVo;
import com.shanghaiyimu.yimiyangche.R;

public class AppVoUtil {

    private static AppVo appVo = null;
    public static AppVo getAppVo(Context context) {
        if (appVo == null) {
            appVo = new AppVo();
            TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
            appVo.setId(context.getResources().getString(R.string.app_id));
            appVo.setMac(tm.getDeviceId());
            appVo.setUrl(context.getResources().getString(R.string.url));
        }
        return appVo;
    }
}
